import request from '@/utils/request';


//满分设置
export function setScore(data) {
    return request({
        url: `/tes/attendance/settingfullmark`,
        method: 'post',
        data
    })
}

//获取满分设置
export function getScore(params) {
    return request({
        url: `/tes/attendance/getFullMarkSetting`,
        method: 'get',
        params
    })
}

//考勤统计下载
export function downloadAttendance(data) {
    return request({
        url: '/tes/attendance/statistics/download',
        method: 'post',
        responseType: 'blob',
        data
    })
}

//课堂表现，满分设置
export function setClassPerFullMark(data, courseId, classId) {
    return request({
        url: `/tes/statistic/course/${courseId}/class/${classId}/settingfullmark`,
        method: 'post',
        data
    })
}

//课堂表现，分数设置
export function setClassPerScore(params, courseId, classId) {
    return request({
        url: `/tes/statistic/course/${courseId}/class/${classId}/settingscore`,
        method: 'get',
        params
    })
}

//课堂表现，数据导出
export function exportClassPerData(data, courseId, classId) {
    return request({
        url: `/tes/statistic/course/${courseId}/class/${classId}/exportdata`,
        method: 'post',
        responseType: 'blob',
        data
    })
}

//课堂表现，满分获取
export function getClasPerFullMark(courseId, classId) {
    return request({
        url: `/tes/statistic/course/${courseId}/class/${classId}/getfullmark`,
        method: 'get'
    })
}


//批阅，满分获取
export function getReviewFullMark(params, courseId) {
    return request({
        url: `/tes/course/${courseId}/check/getFullMark`,
        method: 'get',
        params
    })
}

//批阅，满分设置
export function setReviewFullMark(data, courseId) {
    return request({
        url: `/tes/course/${courseId}/check/settingfullmark`,
        method: 'post',
        data
    })
}
